package Servlet.manager;

import jakarta.servlet.ServletContext;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

public class keyServlet extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        String key=request.getParameter("key");
        String value=request.getParameter("optioned");
        ServletContext application=request.getServletContext();
        application.setAttribute("key",key);
        application.setAttribute("value",value);
        request.getRequestDispatcher("/mansel").forward(request,response);
    }
}
